﻿
@{
    ViewBag.Title = "Setting";
}

<div class="container" style="min-height:500px;">

    <div class="row">
        <div class="col-xs-3">
            <ul class="nav default-sidenav">
                <li class="active">
                    @Html.ActionLink("基本资料", "Setting", "Student", new { @class = "fa fa-cogs" })
                </li>
                <li>
                    @Html.ActionLink("修改密码", "ChangePassword", "Student", new { @class = "fa fa-wrench" })
                </li>
            </ul>

        </div>
        <div class="col-xs-9">
            <div class="page-header">
                <h1><i class="fa fa-cogs"></i> 基本资料</h1>
            </div>
            <div class="page-content row">
                <form class="form-horizontal" id="form-change-password" action="setting" style="margin-top:40px;" method="post">

                    <!-- password -->
                    <div class="form-group form-username">
                        <label class="control-label col-md-2" for="username">账号</label>
                        <div class="col-md-5">
                            <input type="text" class="form-control" id="username" disabled="disabled" value="@ViewBag.user.UserName">
                            <span class="form-message"></span>
                        </div>
                    </div>

                    <!-- form-job-type -->
                    <div class="form-group form-job-type">
                        <label class="control-label col-md-2" for="password">专业</label>
                        <div class="col-md-5">
                            <select class="form-control" id="job-type-input">
                                <option value="-1">--请选择--</option>
                                <c:if test="${user.fieldId eq 2 }">
                                    <option value="2" selected="selected">窗口服务</option>
                                    <option value="3">业报扩装</option>
                                    <option value="4">电能计量</option>
                                </c:if>
                                <c:if test="${user.fieldId eq 3 }">
                                    <option value="2">窗口服务</option>
                                    <option value="3" selected="selected">业报扩装</option>
                                    <option value="4">电能计量</option>
                                </c:if>
                                <c:if test="${user.fieldId eq 4 }">
                                    <option value="2">窗口服务</option>
                                    <option value="3">业报扩装</option>
                                    <option value="4" selected="selected">电能计量</option>
                                </c:if>
                            </select>
                            <span class="form-message"></span>
                        </div>
                    </div>

                    <!-- password-confirm -->
                    <div class="form-group form-password-confirm">
                        <label class="control-label col-md-2" for="password">手机</label>
                        <div class="col-md-5">
                            <input type="text" class="form-control" id="phone" value="@ViewBag.user.Phone">
                            <span class="form-message"></span>
                        </div>
                    </div>

                    <div class="form-group form-email">
                        <label class="control-label col-md-2" for="email">email</label>
                        <div class="col-md-5">
                            <input type="text" class="form-control" id="email" value="@ViewBag.user.Email">
                            <span class="form-message"></span>
                        </div>
                    </div>

                    <!-- Buttons -->
                    <div class="form-group">
                        <!-- Buttons -->
                        <div class="col-md-5 col-md-offset-2">
                            <button type="submit" class="btn" id="btn-reg">
                                确认修改
                            </button>

                        </div>
                    </div>
                </form>




            </div>
        </div>
    </div>
</div>